{extend name="index@common/base"/} 
{block name="style"}
{/block} {block name="body"}
<div class="layui-body layui-tab-content index-body" id="cont">
	<div class="park-navigation">
		<div class="navigation-icon">
			<i class="fa {$breadCrumb[0]['icon']}"></i>
		</div>
		<div class="navigation-menu">
			<h2>{$breadCrumb[0]['title']}</h2>
			{if isset($breadCrumb[1])}
			<p>{$breadCrumb[0]['remark']}</p>
			{/if}
		</div>
	</div>
	<div class="park-content">
		<div class="content-title">
			<div class="title col-9">
				<h3>{$breadCrumb[1]['title']}</h3>
				<form class="layui-form" action="{:url('audit/check/search')}" onsubmit="return false;">
					<button class="search-btn" lay-submit lay-filter="search"><img src="__STATIC__/img/base/topsearch01.png"></button>
					<select name="wftype">
						<option value="">审核类型</option>
						{volist name="wftypeList" id="item"}
						<option value="{$item.subsystemNo}">{$item.subsystemName}</option>
						{/volist}
					</select>
				</form>	
			</div>
			<div class="tool col-1">
				<button id="reload"><i class="fa fa-refresh"></i></button>
			</div>
		</div>
		<table class="layui-hide" id="wfprocess" lay-filter="wfprocess" data-url="{:url('audit/check/index')}"></table>
	</div>
</div>
{/block}
{block name="script"}
<script type="text/javascript" src="__JS__/audit/check.js"></script>
<script type="text/html" id="itemTemplet">
	<p><span>[{{d.wfitem.wfType}}]</span> {{d.wfitem.title}}</p>
</script>
<script type="text/html" id="stepTemplet">
	<p><span>{{d.wfstep.wfStepName}}</span></p>
</script>
<script type="text/html" id="stepContent">
	{{d.wfstep.wfStepDesc}}
</script>
<script type="text/html" id="status">
<div>
	{{# if (d.approvalFlag === 0){ }}
		<p><span class="layui-badge-square layui-bg-gray">未审核</span></p>
	{{# }}}
	{{# if (d.approvalFlag == 1){ }}
		<p><span class="layui-badge-square layui-bg-green">通过</span></p>
	{{# }}}
	{{# if (d.approvalFlag == 2){ }}
		<p><span class="layui-badge-square layui-bg-orange">退回</span></p>
	{{# }}}
	{{# if (d.approvalFlag == 3){ }}
		<p><span class="layui-badge-square layui-bg-red">否决</span></p>
	{{# }}}
</div>
</script>
<script type="text/html" id="toolDemo">
	<div>
		{{# if (d.approvalFlag === 0){ }}
			<a class="layui-btn btn-audit" lay-event="check" id="check_{{d.id}}" data-url="{:url('audit/check/check')}?processId={{d.id}}"><i class="fa fa-file-text"></i></a>
		{{# }else{ }}
			<a class="layui-btn btn-edit" lay-event="detail" id="detail_{{d.id}}" data-url="{:url('audit/check/detail')}?processId={{d.id}}"><i class="fa fa-list"></i></a>
		{{# } }}
	</div>
</script>
{/block}
